package com.zbkj.crmeb.store.request;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zbkj.crmeb.store.dto.StoreProductAttrDO;
import com.zbkj.crmeb.store.model.StoreProductAttr;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_product")
@ApiModel(value="StoreProductRequest对象", description="商品表")
public class StoreProductRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @ApiModelProperty(value = "商品图片")
    @NotNull(message = "商拼图片不能为空")
    private String image;
    
    @ApiModelProperty(value = "商品视频")
    private String video;

    @ApiModelProperty(value = "轮播图")
    @NotNull(message = "轮播图不能为空")
    private String sliderImage;

    @ApiModelProperty(value = "商品名称")
    @NotNull(message = "商品名称不能为空")
    private String storeName;

    @ApiModelProperty(value = "商品简介")
    //@NotNull(message = "商品简介不能为空")
    private String storeInfo;

    @ApiModelProperty(value = "关键字")
    @NotNull(message = "关键字不能为空")
    private String keyword;

    @ApiModelProperty(value = "商品条码（一维码）")
    private String barCode;

    @ApiModelProperty(value = "分类id")
    @NotNull(message = "分类id不能为空")
    private Integer cateId;

    /**
     * 销售活动价格标识
     *
     */
    @ApiModelProperty(value = "销售活动价格标识")
    private Boolean promoteFlag;

    /**
     * ERP成本活动价格标识
     *
     */
    @ApiModelProperty(value = "ERP成本活动价格标识")
    private Boolean erpPromFlag;

    /**
     * 活动价格
     */
    @ApiModelProperty(value = "活动价格")
    private BigDecimal promotePrice;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "单位名")
    @NotNull(message = "单位名称不能为空")
    private String unitName;
    
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    private Boolean isShow;

    @ApiModelProperty(value = "是否热卖")
    private Boolean isHot;

    @ApiModelProperty(value = "是否优惠")
    private Boolean isBenefit;

    @ApiModelProperty(value = "是否精品")
    private Boolean isBest;

    @ApiModelProperty(value = "是否新品")
    private Boolean isNew;

    @ApiModelProperty(value = "添加时间")
    private Integer addTime;

    @ApiModelProperty(value = "最后推送时间")
    private Date lastPushTime;

    @ApiModelProperty(value = "是否包邮")
    private Boolean isPostage;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "新加的运费模板id")
    private Integer shippingTempId;

    /**
     * 供应商id：
     * 2是易时尚
     * 37, 136 是创蓝
     * 42是Muse
     * 21是巴黎春天
     */
    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;

    /**
     * 供应商名称
     */
    @ApiModelProperty(value = "供应商名称")
    private String suppliersName;


    @ApiModelProperty(value = "商户是否代理 0不可代理1可代理")
    private Boolean merUse;

    @ApiModelProperty(value = "获得积分")
    private BigDecimal giveIntegral;

    @ApiModelProperty(value = "觅览的成本价")
    private BigDecimal cost;

    @ApiModelProperty(value = "第三方推送的成本价")
    private BigDecimal sourceCost;

    @ApiModelProperty(value = "秒杀状态 0 未开启 1已开启")
    private Boolean isSeckill;

    @ApiModelProperty(value = "砍价状态 0未开启 1开启")
    private Boolean isBargain;

    @ApiModelProperty(value = "是否优品推荐")
    private Boolean isGood;

    @ApiModelProperty(value = "是否单独分佣")
    private Boolean isSub;

    @ApiModelProperty(value = "虚拟销量")
    private Integer ficti;

    @ApiModelProperty(value = "浏览量")
    private Integer browse;

    @ApiModelProperty(value = "商品二维码地址(用户小程序海报)")
    private String codePath;

    @ApiModelProperty(value = "淘宝京东1688类型")
    private String soureLink;

    @ApiModelProperty(value = "主图视频链接")
    private String videoLink;

    @ApiModelProperty(value = "运费模板ID")
    private Integer tempId;

    @ApiModelProperty(value = "规格 0单 1多")
    private Boolean specType;

    @ApiModelProperty(value = "活动显示排序1=秒杀，2=砍价，3=拼团")
    private String activity;

    @ApiModelProperty(value = "商品属性")
    private List<StoreProductAttr> attr;

    @ApiModelProperty(value = "商品属性DO对象")
    private List<StoreProductAttrDO> attrDO;

    @ApiModelProperty(value = "商品属性详情")
    private List<StoreProductAttrValueRequest> attrValue;
//    private String attrValue;

    @ApiModelProperty(value = "商品分类")
    private List<Integer> cateIds;

    @ApiModelProperty(value = "商品描述")
//    @NotNull(message = "商品描述不能为空")
    private String content;

    @ApiModelProperty(value = "优惠券id集合")
    private List<Integer> couponIds;

    @ApiModelProperty(value = "品牌ID")
    private Integer brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "是否是欧洲商品")
    private Integer isEurope;

    @ApiModelProperty(value = "成分")
    private String composition;

    @ApiModelProperty(value = "规格")
    private String dimension;

    @ApiModelProperty(value = "色号")
    private String colorCode;

    @ApiModelProperty(value = "季节代码")
    private String seasonCode;
    
    @ApiModelProperty(value = "商品推荐图")
    private String recommendImg;

    @ApiModelProperty(value = "预计发货天数")
    @NotNull(message = "预计发货天数不能为空")
    @Min(value = 1, message = "预计发货天数必须为正整数")
    private Integer deliveryData;

    @ApiModelProperty(value = "最快到货天数")
    @NotNull(message = "最快到货天数不能为空")
    @Min(value = 1, message = "最快到货天数必须为正整数")
    private Integer earliestArrivalData;

    @ApiModelProperty(value = "最慢到货天数")
    @NotNull(message = "最慢到货天数不能为空")
    @Min(value = 1, message = "最慢到货天数必须为正整数")
    private Integer slowestArrivalData;

    @ApiModelProperty(value = "二手true  全新false/null")
    private Boolean secondhand;

    @ApiModelProperty(value = "新旧程度（二手商品必填）")
    private String degree;

    @ApiModelProperty(value = "官网实拍")
    private String gwpp1;
    
    @ApiModelProperty(value = "官网模特图")
    private String gwmt1;
    
    @ApiModelProperty(value = "店拍实拍")
    private String sp1;
    
    @ApiModelProperty(value = "自有实拍")
    private String sp;
    
    @ApiModelProperty(value = "店拍模特")
    private String mt1;
    
    @ApiModelProperty(value = "自有模特图")
    private String mt;
    
    @ApiModelProperty(value = "明星海报图 ")
    private String mx1;
    
    @ApiModelProperty(value = "自拍视频")
    private String sp2;
    
    @ApiModelProperty(value = "店拍视频")
    private String sp3;

    @ApiModelProperty(value = "产地")
    private String productionPlace;

    @ApiModelProperty(value = "酒类商品酒庄")
    private String winery;

    @ApiModelProperty(value = "酒类商品年份")
    private String productYear;

    @ApiModelProperty(value = "酒类商品葡萄品种")
    private String grapeVariety;

    @ApiModelProperty(value = "商品信息")
    private String productInformation;

    @ApiModelProperty(value = "草稿箱商品id")
    private Integer draftId;

}
